package com.dem12;



/**
 * @program: fanxing
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-10-27 09:54
 **/
public class Test {
    public static void main(String[] args)throws Exception {
        //通过类名获取
        Class<Dog>  dogClass = Dog.class;
        Dog dog = dogClass.newInstance();
        Dog dog1 = dogClass.newInstance();
        System.out.println(dog==dog1);

    }
}
class Dog{


}